Or “Server on the Mount”, or the poor man’s KeyChain.
This application creates documents which, when double-clicked, quickly log you into a server.
The documents store an alias to the server and your username and password.
To create a new document, open just the ServerMounter application (ie: don’t open a document), drag the icon of the server you want to store into the document window, (you’ll see the machine, volume, and zone appear), enter your username and password, and save the document.
To use a document, just double-click the document. If ServerMounter is launched by opening a document it will quickly log you in and then quit itself.
Notes
Clearly, this little application reduces your security as anyone who can get one of these documents from your machine can log into the server. I recommend you protect your machine with some additional security to avoid problems.
You’ll probably see how I’ve done this little “hack”, I resolve the alias to the server and post keystrokes to the event queue to fill in the AFP login dialog. This will probably break in the future and breaks now if you hold modifier keys down while it works, so let go of Command, Option, and have Caps Lock in the up position when you run it.
The other thing that can defeat this scheme is if some other process on your Mac is running and manages to gobble some events for some reason. The symptom is incomplete username or password being entered.